package punto;
public class Point {
    public int x;
    public int y;

    public Point(int pX, int pY){
        this.x= pX;
        this.y= pY;
    }
    public Point(){
        this(0,0);

    }
    @Override
    public String toString() {
        return this.x + " " + this.y;
    }

    @Override
    public boolean equals(Object t) {
        if (t instanceof Point) {
            Point tt = (Point) t;
            return tt.x == this.x && tt.y == this.y;
        }
        return false;
    }


}
